package com.zjs.mybatis.contorller;

import com.zjs.mybatis.mapper.User_UserMapper;
import com.zjs.mybatis.pojo.User_User;
import com.zjs.mybatis.service.User_UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class User_UserContorller {

    @Autowired
    private User_UserService user_UserService;

    @RequestMapping(value = "/getUser")
    public List<User_User> getUser(){
        System.out.println("方法执行");
       return  user_UserService.getALL();
    }

    @RequestMapping(value = "/getUserCompany")
    public List<User_User> getUserCompany(){
        return user_UserService.getUserCompany();
    }
}
